From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sat, 17 Aug 2024 17:37:13 +0000 (-0600) Subject: simplify osm_tag option processing. (#1325) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2^2~65 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=c53ea10bfff0927f10e0bc6a41623308f3dc7366;p=gpsbabel.git simplify osm_tag option processing. (#1325) I suspect the check of "tagnd" was used in developement before opt_tagnd was added. The only thing the check did was ignore opt_tag values that started with tagnd, they weren't used elsewhere. --- diff --git a/osm.cc b/osm.cc index f24f0ee49..bb0c62db3 100644 --- a/osm.cc +++ b/osm.cc @@ -835,9 +835,7 @@ OsmFormat::osm_rte_disp_trail(const route_head* route) osm_write_tag("name", route->rte_name); osm_write_tag("note", route->rte_desc); - if (opt_tag && (case_ignore_strncmp(opt_tag, "tagnd", 5) != 0)) { - osm_write_opt_tag(opt_tag); - } + osm_write_opt_tag(opt_tag); fout->writeEndElement(); // way }